<template>
  <el-card class="chart-card">
    <div class="chart-header">
      <h2>{{ title }}</h2>
      <slot name="header-controls" />
    </div>
    <slot />
  </el-card>
</template>

<script setup lang="ts">
defineProps<{ title: string }>()
</script>